package model;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

/**
 * Created by BaiYunfei on 2017/6/14.
 */
public class RatingScale extends Model<RatingScale> {

    public static final RatingScale dao = new RatingScale();
    
    @Override
    public boolean save(){
    	return Db.update("INSERT INTO RatingScale ([Student_ID],[Teacher_ID],[Score]) VALUES(?,?,?);",
    			getStr("Student_ID"),
    			getStr("Teacher_ID"),
    			getInt("Score")) > 0;
    }
    
}
